package cn.wolfcode.service.impl;

import cn.wolfcode.service.ILoginService;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements ILoginService {
    @Override
    public String checkLogin(String username, String password) {
        if (!username.equals("张三")){
            return "没有该用户";
        }else if (!password.equals("123")){
            return "密码有误";
        }
        return "登录成功";
    }
}
